package com.wtwd.device.common;

import com.wtwd.device.model.BaseRespCode;

import java.io.Serializable;

/**
 * 返回状态码枚举
 */
public enum RespCode implements BaseRespCode, Serializable {
    UNAUTHORIZED(401, "认证失败"),
    TOKEN_UNAUTHORIZED(501, "token授权失败"),
    TOKEN_CONFLICT(502, "token冲突,已在另一台设备登录"),
    ILLEGAL_OPERATION(514, "非法操作"),
    ;

    private static final long serialVersionUID = 10000000124L;
    private int code;
    private String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
